// 游戏数据模型
export class GameModel {
  constructor() {
    this.score = 0
    this.isGameOver = false
    this.isPaused = false
  }

  increaseScore() {
    this.score += 10
  }

  resetGame() {
    this.score = 0
    this.isGameOver = false
    this.isPaused = false
  }

  gameOver() {
    this.isGameOver = true
  }

  togglePause() {
    this.isPaused = !this.isPaused
  }
}
